from flask import Flask
import platform
from flask_cors import *
app = Flask(__name__)
CORS(app)
# Import the blueprints
from jobs.local5min import elec5min
from jobs.release_elec_arm import emergencyalert

# Register the blueprints
app.register_blueprint(emergencyalert, url_prefix='/EmergencyAlert')
app.register_blueprint(elec5min, url_prefix='/elec5min')

if __name__ == '__main__':
    if platform.system() == 'Linux':
        app.run(host='10.0.12.11', port=3060)
    else:
        app.run(port=5000,debug=True)
